basepath=$(cd "$(dirname "$0")"; pwd)  
remoteAddr=$1
if test -z $remoteAddr
then
read -p "要部署的ip:" remoteAddr
fi
ssh root@${remoteAddr} "rm -rf /usr/local/nginx/html/manage/*.*"
scp $basepath/dist/* root@${remoteAddr}:/usr/local/nginx/html/manage/
scp -r $basepath/dist/static root@${remoteAddr}:/usr/local/nginx/html/manage/
